package org.openstreetmap.josm.plugins.cadastre_es;

public class PolyPixel extends Pixel {
	private PolyPixel prev;
	private PolyPixel next;
	private Boolean vertex = false;
	private Boolean fixedVertex = false;
	private Boolean start = false;
	private int id = 0;
	private Boolean fixed = false;
	
	public PolyPixel(int x, int y) {
		super(x, y);
	}
	
	public PolyPixel(Pixel p) {
		super(p);
	}
	
	public PolyPixel(Pixel p, PolyPixel prev, Boolean vertex) {
		super(p);
		this.prev = prev;
		this.vertex = vertex;
	}
	
	public PolyPixel(PolyPixel p) {
		super(p);
		prev = p.prev;
		next = p.next;
		vertex = p.vertex;
		fixedVertex = p.fixedVertex;
		start = p.start;
	}
	
	public void setVertex(Boolean value) {
		this.vertex = value;
	}
	
	public Boolean getVertex() {
		return vertex;
	}
	
	public void setFixedVertex(Boolean value) {
		this.fixedVertex = value;
	}
	
	public Boolean getFixedVertex() {
		return fixedVertex;
	}
	
	public void setNext(PolyPixel p) {
		next = p;
	}
	
	public void setPrev(PolyPixel p) {
		prev = p;
	}
	
	public PolyPixel getNext() {
		return next;
	}
	
	public PolyPixel getPrev() {
		return prev;
	}
	
	public void setStart() {
		start = true;
	}
	
	public Boolean isStart() {
		return start;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public int getId() {
		return id;
	}
	
	public void setFinal(Boolean fixed) {
		this.fixed = fixed;
	}
	
	public Boolean isFinal() {
		return fixed;
	}
}
